#include "APP_BSW.h"
#include "ASW_Signal.h"
//EepDataType EepData_Read;
//RtcDataType Rtc_Read;
//RtcDataType Rtc_data;
ABI_RTCType RTC_time;
ABI_RTCTime_Type RTC_time_value;
//ABI_M17823_Struct ABI_M17823;
//EepDataType EepData;
void NVM_Read()
{
	/*EepData_Read = RTE_EEP_ReadEepData();
	ABI_NVMData.Cycle_Num = EepData_Read.Cycle_Num_Record;
	ABI_NVMData.FullChrg_Flg = EepData_Read.FullChrg_Flg_Record;
	ABI_NVMData.AccumulatedBatteryPackChargeCapacity = EepData_Read.Add_Capacity;
	ABI_NVMData.UsedSOC = EepData_Read.Use_SOC;
	ABI_NVMData.RealSOC = EepData_Read.RealSOC;
	ABI_NVMData.SOCDisp = EepData_Read.Rpt_SOC;
	ABI_NVMData.ActSOC = EepData_Read.Act_SOC;
	ABI_DID.writeTotalOutputEnergy = EepData_Read.Total_Output_Energy;
	ABI_DID.writeTotalInputEnergy = EepData_Read.Total_InputEnergy;
	ABI_NVMData.SOH = EepData_Read.SOH;
	ABI_NVMData.BMSStoredTime.R=EepData_Read.System_Time_Record;
	ABI_NVMData.Capacity_Store=EepData_Read.SOC_CAP_Use;
	Rtc_Read=RTE_RTC_ReadRtcData();
	RTC_time.timevalidflag = Rtc_Read.tm_valid;
	RTC_time.resetflag = 0;
	RTC_time_vaule.B.N=Rtc_Read.tm_sec;
	RTC_time_vaule.B.year=Rtc_Read.tm_year;
	RTC_time_vaule.B.month=Rtc_Read.tm_mon;
	RTC_time_vaule.B.day=Rtc_Read.tm_mday;
	RTC_time_vaule.B.hour=Rtc_Read.tm_hour;
	RTC_time_vaule.B.minute=Rtc_Read.tm_min;
	//RTC_time_value.R = 0;
	Rtc_data.tm_year=22;
	Rtc_data.tm_mon=2;
	Rtc_data.tm_mday=27;
	Rtc_data.tm_hour=19;
	Rtc_data.tm_min=26;
	Rtc_data.tm_sec=0;
	RTE_RTC_WriteRtcData(Rtc_data);
	ABI_M17823.dieovertemp_flg=0;
	ABI_M17823.cellvoltage_sensorErr_flg=0;
	ABI_M17823.celltemp_sensorErr_flg=0;
	ABI_M17823.ChainNotUpdate_Flg=0;
	ABI_M17823.balpathdiag_flg=0;
	ABI_M17823.BalanceState[432]=0;
	ABI_DID.writeSOCDisp_flg=0;
	ABI_DID.writeSOCReal_flg=0;
	ABI_DID.writeSOCMax_flg=0;
	ABI_DID.writeSOCMin_flg=0;
	ABI_DID.writeSOCDisp=0;
	ABI_DID.writeSOCReal=0;
	ABI_DID.writeSOCMax=0;
	ABI_DID.writeSOCMin=0;
	ABI_DID.writeForbidIsoDetEnable_flg=0;
	ABI_DID.writeAccumulatedBatteryPackChargeCapacity_flg=0;
	ABI_DID.writeAccumulatedBatteryPackChargeCapacity=0;
	ABI_DID.writeTotalInputEnergy_flg=0;
	ABI_DID.writeTotalInputEnergy=0;
	ABI_DID.writeTotalOutputEnergy_flg=0;
	ABI_DID.writeTotalOutputEnergy=0;
	ABI_DID.writeSOH_flg=0;
	ABI_DID.writeSOH=0;
	ABI_CommunicationMonitor_flg.currentsensorlost_flg=0;*/
}
void RTC_Updata()
	{
		/*Rtc_Read=RTE_RTC_ReadRtcData();
		RTC_time_vaule.B.N=Rtc_Read.tm_sec;
		RTC_time_vaule.B.year=Rtc_Read.tm_year;
		RTC_time_vaule.B.month=Rtc_Read.tm_mon;
		RTC_time_vaule.B.day=Rtc_Read.tm_mday;
		RTC_time_vaule.B.hour=Rtc_Read.tm_hour;
		RTC_time_vaule.B.minute=Rtc_Read.tm_min;*/
	}
void NVM_Write()
{
	//RTE_EEP_WriteEepData(EepData);
}
